package fr.pentalog.ctc.controller.page;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import fr.pentalog.ctc.util.WebAppConstants;

/**
 * @author Danut Chindris
 * @since September 13, 2013
 */

@Controller
public class AboutController {

	public static final String ABOUT_VIEW_NAME = "pages/about";
	public static final String ABOUT_PAGE = "about";

	@RequestMapping(value = { "/about" }, method = RequestMethod.GET)
	public String showItemsPage(Model model) {
		model.addAttribute(WebAppConstants.ACTIVE_PAGE, ABOUT_PAGE);
		return ABOUT_VIEW_NAME;
	}
}
